<div id="decView"></div>
<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>主单信息</span></div>
<div class="layui-card-body">
    <div id="salesContractView"></div>
</div>

<!--合同明细-->
<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>合同明细</span></div>
<div class="layui-card-body">
    <table class="layui-hide" id="member-list" lay-filter="member-list"></table>
</div>

<!--费用明细-->
<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>费用明细</span></div>
<div class="layui-card-body">
    <table class="layui-hide" id="cost-list" lay-filter="cost-list"></table>
</div>

<script type="text/html" id="salesContractViewTemp">
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">合同号：</label><label class="fval">{{d.docNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">订单编号：</label><label class="fval">{{d.impOrderNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">合同日期：</label><label class="fval">{{removeNull(d.contractDate)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">状态：</label><label class="fval">{{removeNull(d.statusDesc)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">买方单位：</label><label class="fval">{{removeNull(d.buyerName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">纳税人识别号：</label><label class="fval">{{removeNull(d.buyerTaxpayerNo)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行名称：</label><label class="fval">{{removeNull(d.buyerBankName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行账号：</label><label class="fval">{{removeNull(d.buyerBankAccount)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">银行联系人：</label><label class="fval">{{removeNull(d.buyerLinkPerson)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行电话：</label><label class="fval">{{removeNull(d.buyerBankTel)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行账号：</label><label class="fval">{{removeNull(d.buyerBankAccount)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行地址：</label><label class="fval">{{d.buyerBankAddress}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">卖方单位：</label><label class="fval">{{removeNull(d.sellerName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行名称：</label><label class="fval">{{removeNull(d.sellerBankName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行账号：</label><label class="fval">{{removeNull(d.sellerBankAccount)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">银行地址：</label><label class="fval">{{removeNull(d.sellerBankAddress)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">合同金额：</label><label class="fval">{{removeNull(d.totalPrice)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">货款金额：</label><label class="fval">{{removeNull(d.goodsVal)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">票差调整金额：</label><label class="fval">{{removeNull(d.differenceVal)}}</label></div>
        <div class="layui-col-md3"></div>
    </div>

    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">备注：</label><label class="fval">{{removeNull(d.memo)}}</label></div>
    </div>
</script>